package com.csdj.server.controller;

import com.csdj.server.pojo.Admin;
import com.csdj.server.service.IAdminService;
import io.swagger.annotations.ApiOperation;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.List;

/**
 * <p>
 * 前端控制器
 * </p>
 * *
 * @author zhoubin
 */
@RestController
@RequestMapping("/chat")
public class ChatController {
   @Autowired
   private IAdminService adminService;
   @ApiOperation(value = "获取所有操作员")
   @GetMapping("/admin")
   public List<Admin> getAllAdmins(String keywords) {
      return adminService.getAllAdmins(keywords);
   }
}
